package cn.tedu.toa.management.sys.service;

import cn.tedu.toa.management.sys.entity.SysRoles;
import cn.tedu.toa.management.sys.vo.RoleVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import org.omg.PortableInterceptor.INACTIVE;

import java.util.List;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author huaqian
 * @since 2021-09-09
 */
public interface SysRolesService extends IService<SysRoles> {
    PageInfo<SysRoles> findRoleList(String roleNAme, Integer pageNum, Integer pageSize);

    void saveRole(SysRoles sysRoles,Integer[] menuIds);

    void delRole(Integer roleId);

    void updateRole(SysRoles roles,Integer[] menuIds);

    RoleVo selectRoleMenusByRoleId(Integer roleId);

    List<SysRoles> findAllRoles();







}
